package service.OrderService._stub;

import VO.OrderInfoVO;
import service.OrderService.CheckOrderService;
import util.OrderType;
import util.UserType;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.Iterator;

/**
 * 
 * @author insomnia
 * @version Oct 20 2016
 */

public class CheckOrderService_stub extends UnicastRemoteObject implements CheckOrderService{

    private static final long serialVersionUID = 5506891081607894595L;

    public CheckOrderService_stub() throws RemoteException {
        super();
    }

    public OrderInfoVO getOrderInfo(String orderID)throws RemoteException {
    	OrderInfoVO orderVO=new OrderInfoVO("1", "2", null, null, null, 0, 0, false, null, null, null, null, null, null, null);
        
    	return orderVO;
    }
    public Iterator<OrderInfoVO>getOrderList(String username, OrderType orderType)throws RemoteException{
    	ArrayList<OrderInfoVO> list= new ArrayList<OrderInfoVO>();
    	OrderInfoVO orderVO=new OrderInfoVO("1", "2", null, null, null, 0, 0, false, null, null, null, null, null, null, null);
        list.add(orderVO);
        Iterator<OrderInfoVO> iter=list.iterator();
        return  iter;
    }

}
